package column_generation;

public class ColumnGeneration {
    public static void main(String[] args) {
        DataReader reader = new DataReader();
        reader.loadFile("src/column_generation/cutstock.dat");
        reader.formulateModel();
        double[] specs = new double[reader.specs.length];
        for (int i = 0; i < specs.length; i++) {
            specs[i] = reader.specs[i];
        }

        // RevisedSimplex solver = new RevisedSimplex(reader.A, reader.b, reader.C);
        RevisedSimplex solver = new RevisedSimplex(reader.A, reader.b, reader.C, reader.stockLength, specs);
        solver.showModel();
        solver.solve();
    }
}
